<?xml version="1.0" encoding="UTF-8"?>
<definitions id="definitions" 
  xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
  xmlns:camunda="http://camunda.org/schema/1.0/bpmn"
  targetNamespace="Examples">
	
	<process id="compensateProcess" isExecutable="true">

		<startEvent id="start" />
		
		<sequenceFlow sourceRef="start"	targetRef="bookHotel" />
		
		<userTask id="bookHotel" />
						
		<sequenceFlow sourceRef="bookHotel" targetRef="end" />
		
		<endEvent id="end" />
		
		<subProcess id="compensationScope" triggeredByEvent="true">
			
				<startEvent id="startInCompensationScope">
					<compensateEventDefinition />
				</startEvent>
				
				<sequenceFlow sourceRef="startInCompensationScope" targetRef="undoBookHotel" />
				
				<userTask id="undoBookHotel" />
				
				<sequenceFlow sourceRef="undoBookHotel" targetRef="endInCompensationScope" />
				
				<endEvent id="endInCompensationScope" />
				
			</subProcess>
		
	</process>

</definitions>
